﻿using EntityModels.E09.Files;

namespace IApplicationServices
{
    public interface IFilePathService
    {
        /// <summary>
        ///  创建返回文件id
        /// </summary>
        /// <param name="file"></param>
        /// <returns></returns>
        Task<FilePath> CreateAsync(FilePath file);
        /// <summary>
        /// 根据path和name创建文件
        /// </summary>
        /// <param name="name"></param>
        /// <param name="path"></param>
        /// <param name="size"></param>
        /// <returns></returns>
        Task<FilePath> CreateByPathAsync(string name, string path,string size);
        /// <summary>
        /// 使用id查找文件返回路径
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<FilePath> FindAsync(Guid id);
    }
}
